package org.hy.persistence.mypage;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.hy.domain.mypage.MyShare;
import org.hy.domain.mypage.MyShareComment;

public interface MyShareMapper {
	MyShare findMyShareWithCommentsById(@Param("id") int id,@Param("offset")int offset,@Param("size")int size);
	
	List<MyShare> findMySharesWithCommentsByUid(@Param("uid") int uid,@Param("offset")int offset,@Param("size")int size);
	
	MyShare findMyShareWithDefaultCommentsById(@Param("id") int id,@Param("offset")int offset,@Param("size")int size);
	
	List<MyShare> findMyShareWithDefaultCommentsByUid(@Param("uid") int uid,@Param("offset")int offset,@Param("size")int size);
	
	int insertMyShare(MyShare myShare);
	
	int deleteMyShare(Integer id);
	
	int deleteMyShareComment(Integer id);
	
	int updateMyShare(MyShare myShare);
	
	int updateMyShareComment(MyShareComment myShareComment);
	
	int countMyShare(Integer uid);
	
	int countMyShareComment(int refFeedId);
}
